<Tree Checkable ShowIcon TItem="string">
    <Nodes>
        <TreeNode Title="A" TItem="string">
            <Nodes>
                <TreeNode Title="A1" TItem="string">
                    <Nodes>
                        <TreeNode Title="A1-1" TItem="string"></TreeNode>
                        <TreeNode Title="A2-2" TItem="string"></TreeNode>
                    </Nodes>
                </TreeNode>
                <TreeNode Title="A2" Disabled TItem="string">
                    <Nodes>
                        <TreeNode Title="A2-1" TItem="string"></TreeNode>
                        <TreeNode Title="A2-2" TItem="string"></TreeNode>
                    </Nodes>
                </TreeNode>
                <TreeNode Title="A3" DisableCheckbox TItem="string">
                    <Nodes>
                        <TreeNode Title="A3-1" TItem="string"></TreeNode>
                        <TreeNode Title="A3-2" DisableCheckbox TItem="string"></TreeNode>
                        <TreeNode Title="A3-3" Disabled TItem="string"></TreeNode>
                    </Nodes>
                </TreeNode>
            </Nodes>
        </TreeNode>
        <TreeNode Title="B" TItem="string">
            <Nodes>
                <TreeNode Title="B1" TItem="string"></TreeNode>
                <TreeNode Title="B2" TItem="string"></TreeNode>
            </Nodes>
        </TreeNode>
    </Nodes>
    <IndentTemplate Context="node" >
        <span>--></span>
    </IndentTemplate>
    <TitleTemplate Context="node">
        <span style="color:@(node.Title?.FirstOrDefault() switch {'A'=>"red",'B'=>"green",_=>"blue" })">@node.Title</span>
    </TitleTemplate>
    <TitleIconTemplate Context="node">
        @if (node.IsLeaf)
        {
            <Icon Type="@(node.Title?.FirstOrDefault() switch {'A'=>"user-delete",'B'=>"tag",_=>"" })" Theme="outline" />
        }
        else
        {
            <Icon Type="@(node.Title?.FirstOrDefault() switch {'A'=>"usergroup-delete",'B'=>"tags",_=>"" })" Theme="outline" />
        }
    </TitleIconTemplate>
    <SwitcherIconTemplate Context="node">
        @if (node.Expanded)
        {
            <Icon Type="down-circle" Theme="outline" />
        }
        else
        {
            <Icon Type="right-circle" Theme="outline" />
        }
    </SwitcherIconTemplate>
</Tree>
